package org.dce.screencapturer.objects;

import java.awt.Shape;
import java.awt.geom.Path2D;

import org.dce.screencapturer.actions.drawing.InsertObjectAction;
import org.dce.screencapturer.util.IconFactory;

@SuppressWarnings("serial")
public class Note extends RegularShapeObject {

	public static final class InsertAction extends InsertObjectAction {
		public InsertAction(){
			super("actions.note",IconFactory.getIcon("/images/note.png"), null,Note.class);
		}
	};

	@Override
	protected Shape getShape() {
		
		Path2D path = new Path2D.Double();
		
		int x = left.getCenterX();
		int y = top.getCenterY();
		int width = right.getCenterX();
		int height = bottom.getCenterY();
		
		path.moveTo(x,y);
		path.lineTo(width-15,y);
		path.lineTo(width,y+15);
		path.lineTo(width,height);
		path.lineTo(x, height);
		path.lineTo(x, y);
		path.moveTo(width-15, y);
		path.lineTo(width-15,y+15);
		path.lineTo(width, y+15);
		
		return path;
	}
	


}
